package apis

import (
	"gitee.com/byx_darwin/ncloud-go/core"
	"gitee.com/byx_darwin/ncloud-go/core/net/consts"
)

type QueryRegionGetRequest struct {
	core.NCloudRequest
}

func NewQueryRegionGetRequest() *QueryRegionGetRequest {
	return &QueryRegionGetRequest{
		NCloudRequest: core.NCloudRequest{
			Path:   "/region",
			Method: consts.MethodGet,
		},
	}
}

type RegionInfo struct {
	Code     string   `json:"code"`
	Name     string   `json:"name"`
	CityList []string `json:"city_list"`
}

type QueryRegionGetResponse struct {
	Code    int          `json:"code"`
	Msg     string       `json:"msg"`
	Data    []RegionInfo `json:"data"`
	TrackID string       `json:"track_id"`
}
